package com.shop.front.dao.system;


import com.shop.domain.system.Version;
import com.shop.jpa.BaseDao;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface VersionDao extends BaseDao<Version, Long> {

    @Query(nativeQuery = true, value = "select * from t_version where version_type = ?1  order by version desc limit 1")
    Version getLastVersion(String versionType);

}
